import org from "../moudles/org/org"
import exam from "../moudles/exam/exam"
import logs from "../moudles/elogs/elogs"
import practice from "../moudles/practice/practice"
const routes = [
    {
        path: '/',
        name: 'home',
        meta: {
            title: "首页",
            url:"/index"
        },
        component: () => import("@/views/layout.vue"),
        //重定向
            //
        redirect: "/index",
        children:[
            {
                meta: {
                    title: "首页",
                    url:"/index"
                },
                path: '/index',
                component: () => import("@/views/home/index.vue"),
            },
            {
                meta: {
                    title: "首页"
                },
                path: '',
                name: 'home',
                component: () => import("@/views/home/index.vue"),
            },
            org,
            exam,
            logs,
            practice
         

        ]
    },
    {
        meta: {
            title: "登录",
            isNotVerify: true
        },
        path: '/login',
        name: 'login',
        component: () => import("@/views/login/index.vue")
    },

    //404及没找到的页面
    {
        meta: {
            title: "找不到页面",
            isNotVerify: true
        },
        path: '/:pathMatch(.*)*',
        name: 'NotFound',
        component: () => import("../views/error-pages/404.vue")
    }
]

export default routes